﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Switch.aspx.cs" Inherits="Microsoft.JCI.Portal.Switch" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title> 
    <link href="Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <script  language="javascript">

        var _showNav = true;

        // 鼠标移上，更换图片
        function mouseOut() {
            if (_showNav) {
                document.all("imgSwitch").src = "/Content/Switch/nav0_hide_arrow.gif";
            }
            else {
                document.all("imgSwitch").src = "/Content/Switch/nav0_hide_arrow_out.gif";
            }
        }

        // 鼠标移出，更换图片
        function mouseOver() {
            if (_showNav) {
                document.all("imgSwitch").src = "/Content/Switch/nav0_hidealter_arrow.gif";
            }
            else {
                document.all("imgSwitch").src = "/Content/Switch/nav0_hidealter_arrow_out.gif";
            }

        }

        // 关闭/打开左侧菜单，设置顶部单元格的样式
        function clickSwitch() {
            if (parent.document.all("fs1").cols == "163,7,*") {
                parent.document.all("fs1").cols = "0,7,*";

                document.all("tdTop").style.borderBottom = "none";
                //document.all("tdTop").style.backgroundImage = "";
                document.all("tdTop").style.backgroundColor = "#c9c7ba";

                //document.all("tdSys").style.backgroundColor = "#e7edf6"
                _showNav = false;
            }
            else {
                parent.document.all("fs1").cols = "163,7,*";

                document.all("tdTop").style.borderBottom = "1px solid #808080";
                //document.all("tdTop").style.backgroundImage = "url(/_nav/imgs/nav_bg.gif)";
                document.all("tdTop").style.backgroundColor = "#B1AFA4";

                //document.all("tdSys").style.backgroundColor = "#cdd7e7"
                _showNav = true;
            }
        }
		</script>
</head>
<body title="隐藏/显示菜单" MS_POSITIONING="GridLayout" bottomMargin="0" leftMargin="0" topMargin="0"
		rightMargin="0">
    <form id="form1" runat="server">
  		<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
			<tr height="24">
				<td id="tdTop" style="background-color:#b1afa4;BORDER-BOTTOM: 1px #808080 solid">&nbsp;</td>
			</tr>
			<!--
			<tr height="24" id="trSys" style="DISPLAY:none;">
				<td id="tdSys" style="BACKGROUND-COLOR:#cdd7e7"></td>
			</tr>
			-->
			<tr>
				<td valign="middle" style="BACKGROUND-COLOR:#c9c7ba">
					<img id="imgSwitch" src="/Content/Switch/nav0_hidealter_arrow.gif" style="CURSOR:hand" onclick="clickSwitch()" onmouseout="mouseOver()" onmousemove="mouseOut()">
				</td>
			</tr>
		</table>
    </form>
</body>
</html>
